<template>
    <div>
        2级路由——男装，传参{{$route.params.id}}
        <br>
        <button @click="toList">去衬衫</button>
        <br>
        <button @click="back">返回</button>
        <router-view></router-view>
    </div>
</template>
<script>
export default{
    methods:{
        toList(){
            this.$router.push('men-wear/shirt')
        },
        back(){
            this.$router.go(-1)
        }
    }
}
</script>